/* FoxGUI - The fast, flexible, free Amiga GUI system
Copyright (C) 2001 Simon Fox (Foxysoft)
This library is free software; you can redistribute it and/ormodify it under the terms of the GNU Lesser General PublicLicense as published by the Free Software Foundation; eitherversion 2.1 of the License, or (at your option) any later version.This library is distributed in the hope that it will be useful,but WITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNULesser General Public License for more details.You should have received a copy of the GNU Lesser General PublicLicense along with this library; if not, write to the Free SoftwareFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
static struct MenuItem *MakeMenuItem(GuiWindow *win, char *name, char *selname, unsigned short flags, int key, int enabled, int checkit, int checked, int menutoggle)
{
int SelFillLen, ItemFillLen;
struct MenuItem *m;
struct IntuiText *ItemFill, *SelectFill;
Diagnostic("MakeMenuItem", ENTER, TRUE);
if (!(m = (struct MenuItem *) GuiMalloc(sizeof(struct MenuItem), 0)))
{
Diagnostic("MakeMenuItem", EXIT, FALSE);
return NULL;
};
if (!(ItemFill = (struct IntuiText *) GuiMalloc(sizeof(struct IntuiText), 0)))